﻿using Bootstrap.Security;
using Longbow.Cache;
using Longbow.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Bootstrap.DataAccess.Model;
using Longbow.Web.Mvc;
using PetaPoco;

namespace Bootstrap.DataAccess
{
    /// <summary>
    /// 呼入明细
    /// </summary>
    public static class InboundAbandDetailsHelper
    {
        public const string RetrieveInboundAbandDetailsDataKey = "UserHelper-RetrieveInboundAbandDetails";
        public const string RetrieveInboundAbandDetailsByRoleIdDataKey = "UserHelper-RetrieveInboundAbandDetailsByRoleId";
        public const string RetrieveInboundAbandDetailsByGroupIdDataKey = "UserHelper-RetrieveInboundAbandDetailsByGroupId";
        public const string RetrieveNewInboundAbandDetailsDataKey = "UserHelper-RetrieveNewInboundAbandDetails";
        public const string RetrieveInboundAbandDetailsByNameDataKey = "BootstrapUser-RetrieveInboundAbandDetailsByName";

        /// <summary>
        /// 查询呼入明细
        /// </summary>
        /// <returns></returns>
        public static Page<InboundAbandDetails> RetrievePages(PaginationOption op, DateTime? startTime, DateTime? endTime,
            string CallerID, string CalleeID, string AgentNo) =>
            DbContextManager.Create<InboundAbandDetails>().RetrievePages(op, startTime, endTime, CallerID, CalleeID, AgentNo);


    }
}
